export default {
    changeH(name, size) {
        document.getElementsByClassName(name)[0].style.height = size + "px";
    },
    changeW(name, size) {
        document.getElementsByClassName(name)[0].style.width = size + "px";
    },
    go(url) {
        window.location.href = url;
    },
    registerEvent(className, event) {
        for (let i of document.querySelectorAll(className)) {
            i.addEventListener("click", (i) => {
                event(i)
            })
        }
    },
}
window.innerHtml = (node, body) => {
    node.innerHTML = body;
}
